<?php
use \sy\base\Router;
?>
<!DOCTYPE html>
<html>
<head>
	<title>登录</title>
	<?php $this->display('common/header'); ?>
	<style>body{background-image:url("<?=Router::createUrl()?>assets/image/background/<?=mt_rand(1,8)?>.jpg");background-repeat:no-repeat;background-size:cover}#login_form{display:block;margin-top:40px;max-width:500px;width:90%}</style>
</head>
<body>
	<div id="loading"><div class="preloader-wrapper big active"><div class="spinner-layer spinner-blue"><div class="circle-clipper left"><div class="circle"></div></div><div class="gap-patch"><div class="circle"></div></div><div class="circle-clipper right"><div class="circle"></div></div></div><div class="spinner-layer spinner-red"><div class="circle-clipper left"><div class="circle"></div></div><div class="gap-patch"><div class="circle"></div></div><div class="circle-clipper right"><div class="circle"></div></div></div><div class="spinner-layer spinner-yellow"><div class="circle-clipper left"><div class="circle"></div></div><div class="gap-patch"><div class="circle"></div></div><div class="circle-clipper right"><div class="circle"></div></div></div><div class="spinner-layer spinner-green"><div class="circle-clipper left"><div class="circle"></div></div><div class="gap-patch"><div class="circle"></div></div><div class="circle-clipper right"><div class="circle"></div></div></div></div></div>
	<div id="loading_bg"></div>
	<div id="login_form" class="modal">
		<form id="form" onsubmit="return false;">
			<div class="modal-content">
				<h4>登录</h4>
				<div class="row">
					<div class="input-field col s12">
						<input type="password" name="password" id="password" placeholder="密码"/>
						<label>密码</label>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<a type="submit" class="waves-effect btn-flat">登录</a>
			</div>
		</form>
	</div>
	<script>
	window.sy = {
		"url": {
			"submit": "<?=Router::createUrl('admin/page/login', 'json')?>",
			"to": "<?=$redirect?>"
		},
		"page": "login"
	};
	</script>
	<?php $this->display('common/footer'); ?>
</body>
</html>